package mark.tom.friend.module;

import dagger.Module;
import dagger.Provides;
import mark.tom.friend.bean.db.DaoSession;

import javax.inject.Singleton;

@Module
public class DbModule {

    private DaoSession daoSession;

    public DbModule(DaoSession daoSession) {
        this.daoSession = daoSession;
    }

    @Singleton @Provides
    DaoSession provideDaoSession() {
        return daoSession;
    }
}
